import service from '@/service/request';

export function getAllTopList() {
  return service({
    url: '/toplist',
  });
}

export function getComments(id: number, limit: number, offset: number, category: string) {
  return service({
    url: `/comment/${category}`,
    params: {
      id,
      limit,
      offset,
    },
  });
}
